package com.smarttest.portal.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbAutoDetailsExcresultExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbAutoDetailsExcresultExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSumidIsNull() {
            addCriterion("sumid is null");
            return (Criteria) this;
        }

        public Criteria andSumidIsNotNull() {
            addCriterion("sumid is not null");
            return (Criteria) this;
        }

        public Criteria andSumidEqualTo(Integer value) {
            addCriterion("sumid =", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidNotEqualTo(Integer value) {
            addCriterion("sumid <>", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidGreaterThan(Integer value) {
            addCriterion("sumid >", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidGreaterThanOrEqualTo(Integer value) {
            addCriterion("sumid >=", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidLessThan(Integer value) {
            addCriterion("sumid <", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidLessThanOrEqualTo(Integer value) {
            addCriterion("sumid <=", value, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidIn(List<Integer> values) {
            addCriterion("sumid in", values, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidNotIn(List<Integer> values) {
            addCriterion("sumid not in", values, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidBetween(Integer value1, Integer value2) {
            addCriterion("sumid between", value1, value2, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumidNotBetween(Integer value1, Integer value2) {
            addCriterion("sumid not between", value1, value2, "sumid");
            return (Criteria) this;
        }

        public Criteria andSumresultidIsNull() {
            addCriterion("sumresultid is null");
            return (Criteria) this;
        }

        public Criteria andSumresultidIsNotNull() {
            addCriterion("sumresultid is not null");
            return (Criteria) this;
        }

        public Criteria andSumresultidEqualTo(Integer value) {
            addCriterion("sumresultid =", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidNotEqualTo(Integer value) {
            addCriterion("sumresultid <>", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidGreaterThan(Integer value) {
            addCriterion("sumresultid >", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidGreaterThanOrEqualTo(Integer value) {
            addCriterion("sumresultid >=", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidLessThan(Integer value) {
            addCriterion("sumresultid <", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidLessThanOrEqualTo(Integer value) {
            addCriterion("sumresultid <=", value, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidIn(List<Integer> values) {
            addCriterion("sumresultid in", values, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidNotIn(List<Integer> values) {
            addCriterion("sumresultid not in", values, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidBetween(Integer value1, Integer value2) {
            addCriterion("sumresultid between", value1, value2, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andSumresultidNotBetween(Integer value1, Integer value2) {
            addCriterion("sumresultid not between", value1, value2, "sumresultid");
            return (Criteria) this;
        }

        public Criteria andDetailidIsNull() {
            addCriterion("detailid is null");
            return (Criteria) this;
        }

        public Criteria andDetailidIsNotNull() {
            addCriterion("detailid is not null");
            return (Criteria) this;
        }

        public Criteria andDetailidEqualTo(Integer value) {
            addCriterion("detailid =", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidNotEqualTo(Integer value) {
            addCriterion("detailid <>", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidGreaterThan(Integer value) {
            addCriterion("detailid >", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidGreaterThanOrEqualTo(Integer value) {
            addCriterion("detailid >=", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidLessThan(Integer value) {
            addCriterion("detailid <", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidLessThanOrEqualTo(Integer value) {
            addCriterion("detailid <=", value, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidIn(List<Integer> values) {
            addCriterion("detailid in", values, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidNotIn(List<Integer> values) {
            addCriterion("detailid not in", values, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidBetween(Integer value1, Integer value2) {
            addCriterion("detailid between", value1, value2, "detailid");
            return (Criteria) this;
        }

        public Criteria andDetailidNotBetween(Integer value1, Integer value2) {
            addCriterion("detailid not between", value1, value2, "detailid");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(String value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(String value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(String value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(String value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(String value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(String value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLike(String value) {
            addCriterion("result like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotLike(String value) {
            addCriterion("result not like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<String> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<String> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(String value1, String value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(String value1, String value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andExctimeIsNull() {
            addCriterion("exctime is null");
            return (Criteria) this;
        }

        public Criteria andExctimeIsNotNull() {
            addCriterion("exctime is not null");
            return (Criteria) this;
        }

        public Criteria andExctimeEqualTo(Date value) {
            addCriterion("exctime =", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeNotEqualTo(Date value) {
            addCriterion("exctime <>", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeGreaterThan(Date value) {
            addCriterion("exctime >", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeGreaterThanOrEqualTo(Date value) {
            addCriterion("exctime >=", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeLessThan(Date value) {
            addCriterion("exctime <", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeLessThanOrEqualTo(Date value) {
            addCriterion("exctime <=", value, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeIn(List<Date> values) {
            addCriterion("exctime in", values, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeNotIn(List<Date> values) {
            addCriterion("exctime not in", values, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeBetween(Date value1, Date value2) {
            addCriterion("exctime between", value1, value2, "exctime");
            return (Criteria) this;
        }

        public Criteria andExctimeNotBetween(Date value1, Date value2) {
            addCriterion("exctime not between", value1, value2, "exctime");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecIsNull() {
            addCriterion("usetimemsec is null");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecIsNotNull() {
            addCriterion("usetimemsec is not null");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecEqualTo(Long value) {
            addCriterion("usetimemsec =", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecNotEqualTo(Long value) {
            addCriterion("usetimemsec <>", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecGreaterThan(Long value) {
            addCriterion("usetimemsec >", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecGreaterThanOrEqualTo(Long value) {
            addCriterion("usetimemsec >=", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecLessThan(Long value) {
            addCriterion("usetimemsec <", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecLessThanOrEqualTo(Long value) {
            addCriterion("usetimemsec <=", value, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecIn(List<Long> values) {
            addCriterion("usetimemsec in", values, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecNotIn(List<Long> values) {
            addCriterion("usetimemsec not in", values, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecBetween(Long value1, Long value2) {
            addCriterion("usetimemsec between", value1, value2, "usetimemsec");
            return (Criteria) this;
        }

        public Criteria andUsetimemsecNotBetween(Long value1, Long value2) {
            addCriterion("usetimemsec not between", value1, value2, "usetimemsec");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}